package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程对象 admin_subject
 * 
 * @author ruoyi
 * @date 2020-06-16
 */
public class AdminSubject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @Excel(name = "主键ID")
    private Long subjectId;

    /** 课名称 */
    @Excel(name = "课名称")
    private String subjectName;

    /** 课程类型1标准课程2自创课程3校本课程 */
    @Excel(name = "课程类型1标准课程2自创课程3校本课程")
    private String subjectType;

    /** 封面图片 */
    @Excel(name = "封面图片")
    private String coverPicture;

    /** 难度级别1入门2初级3中级4高级 */
    @Excel(name = "难度级别1入门2初级3中级4高级")
    private String subjectLevel;

    /** 课程介绍 */
    private String introduce;

    /** 排序表 */
    @Excel(name = "排序表")
    private String sortNo;

    /** 课时数 */
    @Excel(name = "课时数")
    private Integer preidNum;

    /** 创建人Id */
    private Long userId;

    /** 所属单位 */
    private Long companyId;

    /** 所属单位 */
    @Excel(name = "所属单位")
    private String companyName;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 帐号状态（0正常 1停用） */
    private String delFlag;

    public void setSubjectId(Long subjectId) 
    {
        this.subjectId = subjectId;
    }

    public Long getSubjectId() 
    {
        return subjectId;
    }
    public void setSubjectName(String subjectName) 
    {
        this.subjectName = subjectName;
    }

    public String getSubjectName() 
    {
        return subjectName;
    }
    public void setSubjectType(String subjectType) 
    {
        this.subjectType = subjectType;
    }

    public String getSubjectType() 
    {
        return subjectType;
    }
    public void setCoverPicture(String coverPicture) 
    {
        this.coverPicture = coverPicture;
    }

    public String getCoverPicture() 
    {
        return coverPicture;
    }
    public void setSubjectLevel(String subjectLevel) 
    {
        this.subjectLevel = subjectLevel;
    }

    public String getSubjectLevel() 
    {
        return subjectLevel;
    }
    public void setIntroduce(String introduce) 
    {
        this.introduce = introduce;
    }

    public String getIntroduce() 
    {
        return introduce;
    }
    public void setSortNo(String sortNo) 
    {
        this.sortNo = sortNo;
    }

    public String getSortNo() 
    {
        return sortNo;
    }
    public void setPreidNum(Integer preidNum) 
    {
        this.preidNum = preidNum;
    }

    public Integer getPreidNum() 
    {
        return preidNum;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setCompanyName(String companyName) 
    {
        this.companyName = companyName;
    }

    public String getCompanyName() 
    {
        return companyName;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("subjectId", getSubjectId())
            .append("subjectName", getSubjectName())
            .append("subjectType", getSubjectType())
            .append("coverPicture", getCoverPicture())
            .append("subjectLevel", getSubjectLevel())
            .append("introduce", getIntroduce())
            .append("sortNo", getSortNo())
            .append("preidNum", getPreidNum())
            .append("userId", getUserId())
            .append("companyId", getCompanyId())
            .append("companyName", getCompanyName())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
